﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ThanhTu.GNCMedia.KQXS.DataAccess.BL;
using System.Data;

namespace WebUI
{
    public partial class Master_KQXS : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           try
            {
                StyleLotteryBL vStyleLotteryBL = new StyleLotteryBL();
                Repeater1.DataSource = vStyleLotteryBL.getbyPosition("top");
                Repeater1.DataBind();

                RptAdv.DataSource = vStyleLotteryBL.getbyPosition("right");
                RptAdv.DataBind();

                DataTable dt = vStyleLotteryBL.getbyPosition("buttom");
                foreach (DataRow item in dt.Rows)
                {
                    Lb_buttom.Text = item["SETTINGVALUE"].ToString();
                }
            }
            catch (Exception ex)
            {
                Response.Write("Master: "+ex.Message);
            }
        }
    }
}